//
//  GridView.h
//  TabulaImaginarius2
//
//  Created by TA2 on 5/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/CATiledLayer.h>
#import "Map.h"

@interface GridView : UIView {
    Map				*map;
	CGLayerRef		gridImage;
	BOOL			annotates;
	CGPoint			lastPoint;
	CGPoint			currentPoint;
	CGFloat			scale;
	CGSize			tileSize;
	float			lineWidth;
}

@property (nonatomic) CGFloat scale;
@property (nonatomic) CGPoint currentPoint;
@property (nonatomic) CGSize tileSize;
@property (assign) BOOL annotates;
@property (nonatomic, retain) Map *map;
@property (nonatomic) float lineWidth;

- (id)initWithMap:(Map *)map withTileSize:(CGSize)size withScale:(int)scale;
- (void)makeGridImage;

@end
